import axios from '@/libs/api.request';

export const getCodeRuleData = () => {
  return axios.request({
    url: '/pt/code/list',
    method: 'post'
  });
};

export const allLevelName = () => {
  return axios.request({
    url: '/pt/other/alllevel',
    method: 'post'
  });
};

export const codeRuleDel = (data) => {
  return axios.request({
    url: '/pt/code/delete',
    method: 'post',
    data: data
  });
};

export const codeRuleAdd = (data) => {
  return axios.request({
    url: '/pt/code/add',
    method: 'post',
    data: data
  });
};

export const codeRuleEdit = (data) => {
  return axios.request({
    url: '/pt/code/edit',
    method: 'post',
    data: data
  });
};
